<!DOCTYPE html>
<html lang="en" th:replace="~{layoutFile :: layout(~{::title}, ~{::section})}" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Relative Link</title>
</head>
<body>
    <section>
        <a href="#" th:href="@{'/to-resolve'}">Relative Link</a>
    </section>
</body>
</html>